package cn.edu.nankai.bookstore.domain.po;

import java.io.Serializable;

public class Book implements Serializable {
    private int bookId;
    private String name;
    private Double price;

    public Book(int bookId, String name, Double price) {
        this.bookId = bookId;
        this.name = name;
        this.price = price;
    }

    public Book(String name, Double price) {
        this.name = name;
        this.price = price;
    }

    public Book() {
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bookId=" + bookId +
                ", name='" + name + '\'' +
                ", price=" + price +
                '}';
    }
}